package com.leather.question.config;


import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MQConfig {

    public final static String DELETE_ANSWER_QUENE = "deleteanswer";
    public final static String MESSAGE_QUENE = "messagequene";
    public final static String ANSWERS_QUEUE = "anwserquene";


    @Bean
    public Queue getQuene(){
        return new Queue(DELETE_ANSWER_QUENE,true);
    }
    @Bean
    public Queue getMessageQuene(){
        return new Queue(MESSAGE_QUENE,true);
    }
    @Bean
    public Queue getAnswerQueue(){
        return new Queue(ANSWERS_QUEUE,true);
    }

}
